package chapter6;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description: 显示图案
 * Date:2021/4/4
 * 
 Enter the number :  6
	     	     	     	     	     	     	     
	     	     	     	     	     	     	1    
	     	     	     	     	     	2    	1    
	     	     	     	     	3    	2    	1    
	     	     	     	4    	3    	2    	1    
	     	     	5    	4    	3    	2    	1    
	     	6    	5    	4    	3    	2    	1    

 * ***************************************************************
 */
public class exc6_6 {
	
	
	public static void displayPattern(int n) {
		
		for(int i=0;i<=n;i++) {
			
			for(int j=0;j<n-i+1;j++) {
				System.out.print("\t     ");
			}
			
			for(int k=i;k>=1;k--) {
				System.out.printf("\t%-5d",k);
			}
			System.out.print("\n");
			
		}
		
	}
	
	public static void main(String[]  args) {
		
		Scanner input=new Scanner(System.in);
		
		System.out.print("Enter the number :  ");
		int n=input.nextInt();
		
		displayPattern(n);
		
	}

}
